package com.edu.study.base.stuCourseSutdent.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.edu.study.base.stuCourseSutdent.mapper.StuCourseSutdentMapper;
import com.edu.study.base.stuCourseSutdent.domain.StuCourseSutdent;
import com.edu.study.base.stuCourseSutdent.service.IStuCourseSutdentService;

/**
 * 学员课程学习情况Service业务层处理
 * 
 * @author zw
 * @date 2021-06-30
 */
@Service
//@DataSource(value = DataSourceType.SLAVE)
public class StuCourseSutdentServiceImpl implements IStuCourseSutdentService 
{
    @Autowired
    private StuCourseSutdentMapper stuCourseSutdentMapper;

    /**
     * 查询学员课程学习情况
     * 
     * @param id 学员课程学习情况ID
     * @return 学员课程学习情况
     */
    @Override
    public StuCourseSutdent selectStuCourseSutdentById(Long id)
    {
        return stuCourseSutdentMapper.selectStuCourseSutdentById(id);
    }

    @Override
    public StuCourseSutdent selectStuCourseSutdent(StuCourseSutdent stuCourseSutdent) {
        return stuCourseSutdentMapper.selectStuCourseSutdent(stuCourseSutdent);
    }

    /**
     * 查询学员课程学习情况列表
     * 
     * @param stuCourseSutdent 学员课程学习情况
     * @return 学员课程学习情况
     */
    @Override
    public List<StuCourseSutdent> selectStuCourseSutdentList(StuCourseSutdent stuCourseSutdent)
    {
        return stuCourseSutdentMapper.selectStuCourseSutdentList(stuCourseSutdent);
    }

    /**
     * 新增学员课程学习情况
     * 
     * @param stuCourseSutdent 学员课程学习情况
     * @return 结果
     */
    @Override
    public int insertStuCourseSutdent(StuCourseSutdent stuCourseSutdent)
    {
        return stuCourseSutdentMapper.insertStuCourseSutdent(stuCourseSutdent);
    }

    /**
     * 修改学员课程学习情况
     * 
     * @param stuCourseSutdent 学员课程学习情况
     * @return 结果
     */
    @Override
    public int updateStuCourseSutdent(StuCourseSutdent stuCourseSutdent)
    {
        return stuCourseSutdentMapper.updateStuCourseSutdent(stuCourseSutdent);
    }

    @Override
    public int updateStuCourseSutdentById(StuCourseSutdent stuCourseSutdent) {
        return stuCourseSutdentMapper.updateStuCourseSutdentById(stuCourseSutdent);
    }

    /**
     * 批量删除学员课程学习情况
     * 
     * @param ids 需要删除的学员课程学习情况ID
     * @return 结果
     */
    @Override
    public int deleteStuCourseSutdentByIds(Long[] ids)
    {
        return stuCourseSutdentMapper.deleteStuCourseSutdentByIds(ids);
    }

    /**
     * 删除学员课程学习情况信息
     * 
     * @param id 学员课程学习情况ID
     * @return 结果
     */
    @Override
    public int deleteStuCourseSutdentById(Long id)
    {
        return stuCourseSutdentMapper.deleteStuCourseSutdentById(id);
    }
}
